﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DataAccess.PlayerScore>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    PlayerScore
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>PlayerScore</h2>

    <table>
        <tr>
            <th></th>
            <th>
                BallsFaced
            </th>
            <th>
                Run1
            </th>
            <th>
                Run2
            </th>
            <th>
                Run3
            </th>
            <th>
                Run4
            </th>
            <th>
                Run6
            </th>
            <th>
                BallsBowled
            </th>
            <th>
                RunsGiven
            </th>
            <th>
                Wickets
            </th>
            <th>
                Catches
            </th>
            <th>
                Dot
            </th>
            <th>
                NoBall
            </th>
            <th>
                RunOutBy
            </th>
            <th>
                Match
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
                <%: Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%> |
                <%: Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
            </td>
            <td>
                <%: item.BallsFaced %>
            </td>
            <td>
                <%: item.Run1 %>
            </td>
            <td>
                <%: item.Run2 %>
            </td>
            <td>
                <%: item.Run3 %>
            </td>
            <td>
                <%: item.Run4 %>
            </td>
            <td>
                <%: item.Run6 %>
            </td>
            <td>
                <%: item.BallsBowled %>
            </td>
            <td>
                <%: item.RunsGiven %>
            </td>
            <td>
                <%: item.Wickets %>
            </td>
            <td>
                <%: item.Catches %>
            </td>
            <td>
                <%: item.Dot %>
            </td>
            <td>
                <%: item.NoBall %>
            </td>
            <td>
                <%: item.RunOutBy %>
            </td>
            <td>
                <%: item.Match %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

